#!/usr/bin/env python
# encoding: utf-8
# @author: liusir
# @file: demo_13.py
# @time: 2022/11/27 2:33 PM

from utlis.testcase_data_utils import TestcaseDataUtils

case_datas = TestcaseDataUtils().convert_testcase_data_to_list_unittest()
# print( list( case_datas[0].keys() ) )  # ==> "case_id,case_step"
case_key_list = list( case_datas[0].keys() )
case_key_str = ",".join( case_key_list )
print( case_key_str )

test_data_list = []
for case_data in case_datas:
    case_value = tuple( case_data.values() )
    test_data_list.append( case_value )
print( test_data_list )
